package com.start.pay.core.enums;

import com.start.common.enums.StartBaseIntegerEnum;

public enum StartPayState implements StartBaseIntegerEnum {
    UN_PAY("待支付", 0),
    PAY_ING("支付中", 1),
    PAY_SUCCESS("支付成功", 2),
    PAY_FAIL("支付失败", 3),
    PAY_EXCEPTION("支付异常", 99),
    PAY_CANCEL("订单撤销", -1),
    PAY_REFUND_ING("退款中", -2),
    PAY_REFUND_SUCCESS("退款成功", -3),
    PAY_REFUND_FAIL("退款失败", -4),
    PAY_REFUND_EXCEPTION("退款服务处理异常", -99),
    
    ORDER_CLOSE("交易关闭", -999);

    private final String label;

    private final Integer value;

    StartPayState(String label, Integer value) {
        this.label = label;
        this.value = value;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getLabel() {
        return label;
    }


}
